import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

export type AppRouteRecordRaw = RouteRecordRaw & {
    hidden?: boolean
}

const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            meta: {
                title: '代办列表'
            },
            component: () => import('../views/Home.vue')
        },
        {
            path: "/add",
            hidden: true,
            component: () => import('../views/Add.vue')
        }
    ] as AppRouteRecordRaw[]
})
/** 路由守卫 */
// router.beforeEach((to,from,next)=>{
    
// })


export default router